package com.netease.b.b.f;

import com.netease.b.b.e.d;
import com.netease.b.b.e.f;
import org.json.JSONException;
import org.json.JSONObject;

public class a extends com.netease.b.b.e.a
{
  public static final String a = "SrAmtZ5vYhL4JDgh";
  public static final String b = "tBZdZuJZQANErLJRLeLJ5Rpfz4T1JNk0";
  private static final String d = "http://api.t.163.com";
  private static a e;

  public a()
  {
    super("SrAmtZ5vYhL4JDgh", "tBZdZuJZQANErLJRLeLJ5Rpfz4T1JNk0");
  }

  public static a a()
  {
    if (e == null)
      e = new a();
    return e;
  }

  private String c(String paramString1, String paramString2)
  {
    int i = 0;
    if (paramString1 != null);
    try
    {
      if (paramString1.length() >= 5)
      {
        int j = Integer.valueOf(paramString1.substring(0, 5)).intValue();
        i = j;
      }
      label31: switch (i)
      {
      default:
      case 401:
      case 1401:
      }
      while (true)
      {
        return paramString2;
        paramString2 = "网易微博绑定失效，请重新绑定。";
      }
    }
    catch (Exception localException)
    {
      break label31;
    }
  }

  public int a(d paramd)
  {
    b("SrAmtZ5vYhL4JDgh", "tBZdZuJZQANErLJRLeLJ5Rpfz4T1JNk0");
    return a(new b(), paramd);
  }

  public int a(String paramString1, String paramString2, String paramString3, String paramString4, String paramString5, String paramString6, d paramd)
  {
    return a(c.a(paramString1, paramString2, paramString3, paramString4, paramString5, paramString6), paramd);
  }

  public f a(int paramInt, String paramString)
  {
    f localf;
    if (paramString == null)
      localf = new f(1, -5, null, null);
    while (true)
    {
      return localf;
      com.netease.g.b.e("NeteaseService", paramString);
      localf = new f(1);
      localf.h = paramInt;
      try
      {
        JSONObject localJSONObject = new JSONObject(paramString);
        localf.i = localJSONObject.optString("message_code");
        localf.j = localJSONObject.optString("error");
        localf.j = c(localf.i, localf.j);
      }
      catch (JSONException localJSONException)
      {
        localf.h = -1;
        localf.j = f.a(-1);
        localJSONException.printStackTrace();
      }
    }
  }

  public String a(String paramString)
  {
    return "http://api.t.163.com" + paramString;
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.b.b.f.a
 * JD-Core Version:    0.6.0
 */